def main():
    try:
        c = open('Files.txt', 'w')
        c.write("pig")
        c.close()
        c = open('Files.txt', 'r')
        print(c.read(2))
        print(c.read())
        print(c.read())
        c.close()
    except:
        print('error')

if __name__ == "__main__":
    main()